// CryptoPayment.java
public class CryptoPayment implements Payment {
    private String walletAddress;
    
    public CryptoPayment(String walletAddress) {
        this.walletAddress = walletAddress;
    }
    
    @Override
    public boolean pay(double amount) {
        System.out.println("处理加密货币支付: ¥" + amount);
        System.out.println("发送到钱包: " + walletAddress);
        return Math.random() > 0.05; // 95%成功率
    }
    
    @Override
    public String getPaymentMethod() {
        return "加密货币";
    }
}